package com.sansui.admin.core.model;

import java.io.Serializable;

import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.sansui.admin.core.groups.DictAdd;
import com.sansui.admin.core.groups.DictUpdate;

import lombok.Data;


@Data
@Table(name="system_dict")
public class Dict  implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 3138060792826655366L;
	@NotNull(groups = { DictUpdate.class }, message = "id不能为空")  
	private String id;
	@NotNull(groups = { DictUpdate.class,DictAdd.class }, message = "name不能为空")  
    private String name;
	@NotNull(groups = { DictUpdate.class,DictAdd.class }, message = "type不能为空")  
    private String type;
	@NotNull(groups = { DictUpdate.class,DictAdd.class  }, message = "code不能为空")  
    private String code;
}